﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Zoomtel.Entity.BIZ
{

    public class AgentInfoPubModel
    {
        public string Id { get; set; }

        [Description("分销商代码")]

        public string AgentCode { get; set; }

        [Description("分销商昵称")]

        public string AgentName { get; set; }

        [Description("性别 1男 0女 2不详")]

        /// <summary>
        /// 性别 1男 0女 2不详
        /// </summary>
        public string AgentSex { get; set; }

        [Description("绑定微信OPENID")]

        public string AgentWechatId { get; set; }

        [Description("分销商手机号码")]

        public string AgentPhoneNum { get; set; }

        [Description("分销商等级")]
        public string AgentLevel { get; set; }

        [Description("上级ID")]

        public string UpperId { get; set; }

        [Description("账户余额、可提现余额")]

        /// <summary>
        /// 余额
        /// </summary>
        public decimal AccountBalance { get; set; }
        public string AgentPsw { get; set; }

        [Description("注册时间")]

        public DateTime? CreatedTime { get; set; }

        [Description("注册IP")]

        public string CreateIP { get; set; }

        [Description("最后登陆时间")]

        public DateTime? LastTime { get; set; }

        [Description("最后登陆IP")]

        public string LastIP { get; set; }

        [Description("登陆次数")]

        public int? LoginCount { get; set; }

        [Description("省份")]

        public string Province { get; set; }

        [Description("城市")]

        public string City { get; set; }

        [Description("头像")]

        public string Avatar { get; set; }

        [Description("冻结余额")]
        public decimal LockBalance { get; set; }

        public string Status { get; set; }

        [NotMapped]
        [Description("总收益")]
        /// <summary>
        /// 总收益
        /// </summary>
        public decimal AllEarnings { get; set; }

        [NotMapped]
        [Description("今日预计收益")]

        /// <summary>
        /// 今日预计收益
        /// </summary>
        public decimal ToDayProjectedEarnings { get; set; }

        [NotMapped]
        [Description("昨日收益")]

        /// <summary>
        /// 昨日收益
        /// </summary>
        public decimal YesterdayEarnings { get; set; }
        [Description("推广二维码")]
        public string web_qrcode { get; set; }
    }

    [Table("T_BIZ_AGENTINFO")]
    public class AgentInfoEntity : BaseEntity
    {
        [Key]
        public string Id { get; set; }

        [Description("分销商代码")]

        public string AgentCode { get; set; }

        [Description("分销商昵称")]

        public string AgentName { get; set; }

        [Description("性别 1男 0女 2不详")]

        /// <summary>
        /// 性别 1男 0女 2不详
        /// </summary>
        public string AgentSex { get; set; }

        [Description("绑定微信OPENID")]

        public string AgentWechatId { get; set; }

        [Description("分销商手机号码")]

        public string AgentPhoneNum { get; set; }

        [Description("分销商等级")]
        public string AgentLevel { get; set; }

        [Description("上级ID")]

        public string UpperId { get; set; }

        [Description("账户余额、可提现余额")]

        /// <summary>
        /// 余额
        /// </summary>
        public decimal AccountBalance { get; set; }
        public string AgentPsw { get; set; }

        [Description("注册时间")]

        public DateTime? CreatedTime { get; set; }

        [Description("注册IP")]

        public string CreateIP { get; set; }

        [Description("最后登陆时间")]

        public DateTime? LastTime { get; set; }

        [Description("最后登陆IP")]

        public string LastIP { get; set; }

        [Description("登陆次数")]

        public int? LoginCount { get; set; }

        [Description("省份")]

        public string Province { get; set; }

        [Description("城市")]

        public string City { get; set; }

        [Description("头像")]

        public string Avatar { get; set; }

        [Description("冻结余额")]
        public decimal LockBalance { get; set; }
        
        public string Status { get; set; }


      


    }
}
